package com.zs.service.impl;

import com.alibaba.dubbo.config.annotation.Reference;
import com.zs.entity.UserAddress;
import com.zs.service.OrderService;
import com.zs.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderServiceImpl implements OrderService {

    // @Autowired
    @Reference   //调用服务，消费服务
    private UserService userService;

    public List<UserAddress> initOrder(String userid) {
        System.out.println("用户的id " + userid);

        List<UserAddress> list = userService.getUserAddress(userid);

        return list;
    }
}
